package com.gzsxy.esjy.service.product.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gzsxy.esjy.service.base.dto.request.CommentRequest;
import com.gzsxy.esjy.service.base.dto.response.CommentRsp;
import com.gzsxy.esjy.service.base.util.Page;
import com.gzsxy.esjy.service.product.entity.Comment;
import com.gzsxy.esjy.service.product.entity.vo.CommentQueryVo;

/**
 * <p>
 * 评论 服务类
 * </p>
 *
 * @author zxl
 * @since 2021-11-02
 */
public interface CommentService extends IService<Comment> {

    /**
     * @description: 用户分页列表
     * @param page
     * @param commentQueryVo
     * @return
     */
    IPage<CommentRsp> getPageVo(Page<?> page, CommentQueryVo commentQueryVo);

    /**
     * @description: 修改回复评论
     * @param
     * @return
     */
    void replyComment(CommentRequest commentRequest);


    /**
     * @description: 删除评论
     * @param
     * @return
     */
    void deleteComment(String id);

    /**
     * @description: 添加评论
     * @param
     * @return
     */
    void addComment(CommentRequest commentRequest);
}
